22 #define ENDSTOP_X_MIN_ID 1 23 #define ENDSTOP_X_MAX_ID 2 24 #define ENDSTOP_Y_MIN_ID 4 25 #define ENDSTOP_Y_MAX_ID 8 26 #define ENDSTOP_Z_MIN_ID 16 27 #define ENDSTOP_Z_MAX_ID 32 28 #define ENDSTOP_Z2_MIN_ID 64 29 #define ENDSTOP_Z2_MINMAX_ID 64 30 #define ENDSTOP_Z_PROBE_ID 128 33 #define ENDSTOP_X2_MIN_ID 1 34 #define ENDSTOP_X2_MAX_ID 2 35 #define ENDSTOP_Y2_MIN_ID 4 36 #define ENDSTOP_Y2_MAX_ID 8 37 #define ENDSTOP_Z2_MAX_ID 16 38 #define ENDSTOP_Z3_MIN_ID 32 39 #define ENDSTOP_Z3_MAX_ID 64 41 #if IS_MAC_TRUE(MIN_HARDWARE_ENDSTOP_X2) || IS_MAC_TRUE(MAX_HARDWARE_ENDSTOP_X2) || IS_MAC_TRUE(MIN_HARDWARE_ENDSTOP_Y2) || IS_MAC_TRUE(MAX_HARDWARE_ENDSTOP_Y2) || IS_MAC_TRUE(MAX_HARDWARE_ENDSTOP_Z2) || IS_MAC_TRUE(MAX_HARDWARE_ENDSTOP_Z3) || IS_MAC_TRUE(MIN_HARDWARE_ENDSTOP_Z3) 42 #define EXTENDED_ENDSTOPS 1 49 #ifdef EXTENDED_ENDSTOPS 61 #ifdef EXTENDED_ENDSTOPS 69 #ifdef EXTENDED_ENDSTOPS 70 return lastState != 0 || lastState2 != 0;
72 return lastState != 0;
77 #ifdef EXTENDED_ENDSTOPS 83 #ifdef EXTENDED_ENDSTOPS 84 lastState2 = accumulator2;
88 #if (X_MIN_PIN > -1) && MIN_HARDWARE_ENDSTOP_X 95 #if (X_MAX_PIN > -1) && MAX_HARDWARE_ENDSTOP_X 102 #if (Y_MIN_PIN > -1) && MIN_HARDWARE_ENDSTOP_Y 109 #if (Y_MAX_PIN > -1) && MAX_HARDWARE_ENDSTOP_Y 116 #if (Z_MIN_PIN > -1) && MIN_HARDWARE_ENDSTOP_Z 123 #if (Z_MAX_PIN > -1) && MAX_HARDWARE_ENDSTOP_Z 130 #if (Z2_MINMAX_PIN > -1) && MINMAX_HARDWARE_ENDSTOP_Z2 142 #ifdef EXTENDED_ENDSTOPS 143 static INLINE bool x2Min() {
144 #if HAS_PIN(X2_MIN_PIN) && MIN_HARDWARE_ENDSTOP_X2 150 static INLINE bool x2Max() {
151 #if HAS_PIN(X2_MAX_PIN) && MAX_HARDWARE_ENDSTOP_X2 157 static INLINE bool y2Min() {
158 #if HAS_PIN(Y2_MIN_PIN) && MIN_HARDWARE_ENDSTOP_Y2 164 static INLINE bool y2Max() {
165 #if HAS_PIN(Y2_MAX_PIN) && MAX_HARDWARE_ENDSTOP_Y2 171 static INLINE bool z2Max() {
172 #if HAS_PIN(Z2_MAX_PIN) && MAX_HARDWARE_ENDSTOP_Z2 178 static INLINE bool z3Max() {
179 #if HAS_PIN(Z3_MAX_PIN) && MAX_HARDWARE_ENDSTOP_Z3 185 static INLINE bool z3Min() {
186 #if HAS_PIN(Z3_MIN_PIN) && MIN_HARDWARE_ENDSTOP_Z3 static INLINE bool anyXYZ()
Definition: Endstops.h:60
static INLINE bool yMin()
Definition: Endstops.h:101
#define ENDSTOP_X_MIN_ID
Definition: Endstops.h:22
static INLINE bool zMax()
Definition: Endstops.h:122
static flag8_t accumulator
Definition: Endstops.h:48
uint8_t flag8_t
Definition: HAL.h:159
#define ENDSTOP_Z2_MAX_ID
Definition: Endstops.h:37
static INLINE bool z2MinMax()
Definition: Endstops.h:129
#define ENDSTOP_Y2_MAX_ID
Definition: Endstops.h:36
Definition: Endstops.h:45
#define ENDSTOP_Z_PROBE_ID
Definition: Endstops.h:30
static INLINE bool yMax()
Definition: Endstops.h:108
static INLINE bool xMin()
Definition: Endstops.h:87
#define ENDSTOP_Y2_MIN_ID
Definition: Endstops.h:35
static INLINE void fillFromAccumulator()
Definition: Endstops.h:81
#define ENDSTOP_X2_MAX_ID
Definition: Endstops.h:34
static INLINE bool xMax()
Definition: Endstops.h:94
#define ENDSTOP_Y_MAX_ID
Definition: Endstops.h:25
#define ENDSTOP_Y_MIN_ID
Definition: Endstops.h:24
static INLINE bool zProbe()
Definition: Endstops.h:136
#define ENDSTOP_X2_MIN_ID
Definition: Endstops.h:33
#define ENDSTOP_Z_MIN_ID
Definition: Endstops.h:26
static INLINE bool zMin()
Definition: Endstops.h:115
static void report()
Definition: Endstops.cpp:141
#define INLINE
Definition: HAL.h:37
#define ENDSTOP_Z3_MAX_ID
Definition: Endstops.h:39
static INLINE bool anyXYZMax()
Definition: Endstops.h:57
#define ENDSTOP_Z2_MIN_ID
Definition: Endstops.h:28
#define ENDSTOP_X_MAX_ID
Definition: Endstops.h:23
static flag8_t lastState
Definition: Endstops.h:46
static void update()
Definition: Endstops.cpp:35
static INLINE void resetAccumulator()
Definition: Endstops.h:75
#define ENDSTOP_Z3_MIN_ID
Definition: Endstops.h:38
#define ENDSTOP_Z_MAX_ID
Definition: Endstops.h:27
static flag8_t lastRead
Definition: Endstops.h:47
static INLINE bool anyEndstopHit()
Definition: Endstops.h:68